#ifndef CE04DE41_F7EF_4EF6_A6F5_AA37515A18F7
#define CE04DE41_F7EF_4EF6_A6F5_AA37515A18F7
enum SPIDataSize
{
    SPI_DATA_SIZE_8 = 0,
    SPI_DATA_SIZE_16,
};

enum SPIFirstBit
{
    SPI_MSB = 0,
    SPI_LSB = 1,
};

enum SPIBaud
{
    SPI_BAUD_18M = 0,
    SPI_BAUD_9M,
    SPI_BAUD_4500K,
    SPI_BAUD_2250K,
    SPI_BAUD_1125K,
    SPI_BAUD_562500,
    SPI_BAUD_281250,
};
enum SPI_CPOL
{
    SPI_CPOL_LOW = 0,
    SPI_CPOL_HIGH,
};

enum SPI_CPHA
{
    SPI_CPHA_1EDGE = 0,
    SPI_CPHA_2EDGE = 1,
};
void spi_master_set_param(unsigned char cmd, unsigned char subCmd, unsigned char *data);
void spi_master_send_data(unsigned char cmd, unsigned char subCmd, unsigned char *data);
void spi_master_read_data(unsigned char cmd,unsigned char subCmd,unsigned char *data);
void spi_master_send_read_data(unsigned char cmd,unsigned char subCmd,unsigned char *data);
void spi_master_rec_update(unsigned char cmd, unsigned char subCmd, void *param);
void spi_master_send_rec_update(unsigned char cmd, unsigned char subCmd, void *param);
#endif /* CE04DE41_F7EF_4EF6_A6F5_AA37515A18F7 */
